package com.liuxin.zhiyuan.shujuzhongxin.service.impl;

import com.liuxin.zhiyuan.shujuzhongxin.mapper.MajorCategoryMapper;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liuxin.common.utils.PageUtils;
import com.liuxin.common.utils.Query;

import com.liuxin.zhiyuan.shujuzhongxin.domain.po.MajorCategoryEntity;
import com.liuxin.zhiyuan.shujuzhongxin.service.MajorCategoryService;


@Service
public class MajorCategoryServiceImpl extends ServiceImpl<MajorCategoryMapper, MajorCategoryEntity> implements MajorCategoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MajorCategoryEntity> page = this.page(
                new Query<MajorCategoryEntity>().getPage(params),
                new QueryWrapper<MajorCategoryEntity>()
        );

        return new PageUtils(page);
    }

}